exec java -jar  /app.jar \


##axpaas
##获取macvlan的ip并截取注入环境变量
#export MACVLAN_IP=`ip route show |grep eth1 |grep -v default |awk '{print $NF}'`
#if [ ! -z "$MACVLAN_IP" ];then
#  if [ "$(echo $MACVLAN_IP | awk '{print(/^[0-9].*$/)}')" = 0 ];then
#      MACVLAN_IP=$(echo $MACVLAN_IP | awk -F" " '{print $2}')
#  fi
#fi
#EXPORT_OPTS="$EXPORT_OPTS -Dhost.ip=$MACVLAN_IP"
#printf "GET EXPORT_OPTS: $EXPORT_OPTS.\n"
#
##处理sw配置
#APP_NAME=application-center
#SW_SERVICE_NAME=${SW_SERVICE_NAME:-"$APP_NAME"}
#if [ "$SW_ENABLED" = "true" ]; then
#  SW_HOME=${SW_HOME:-"$HOME/.apm"}
#  SW_JAR_FILE="$SW_HOME/apache-skywalking-apm-bin/agent/skywalking-agent.jar"
#  SW_OPTS="-javaagent:$SW_JAR_FILE -Dskywalking.agent.service_name=$SW_SERVICE_NAME -Dskywalking.collector.backend_service=$SW_BACKEND_SERVICES"
#else
#  SW_OPTS=""
#fi
#printf "GET SW_OPTS: $SW_OPTS.\n"
#
#JAVA_COMMAND="java $EXPORT_OPTS $SW_OPTS -jar /app.jar \\"
#echo $JAVA_COMMAND
#exec $JAVA_COMMAND
